package com.doushu.dispatch.mapper;

import com.doushu.dispatch.entity.Creative;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CreativeMapper {

    @Insert("INSERT INTO ds_creative(impression,click,ctr,cost,cpc,favtotal,indirectcarttotal,favitemtotal,roi,coverage,cpm,indirecttransaction,transactiontotal,indirecttransactionshipping,favshoptotal,directcarttotal,directtransactionshipping,transactionshippingtotal,carttotal,directtransaction,campaignid,adgroupid,datatime,sid,traffictype)" +
            " VALUES (#{impression},#{click},#{ctr},#{cost},#{cpc},#{favtotal},#{indirectcarttotal},#{favitemtotal},#{roi},#{coverage},#{cpm},#{indirecttransaction},#{transactiontotal},#{indirecttransactionshipping},#{favshoptotal},#{directcarttotal},#{directtransactionshipping},#{transactionshippingtotal},#{carttotal},#{directtransaction},#{campaignid},#{adgroupid},#{datatime},#{sid},#{traffictype})")
    Integer insertItem(Creative creative);
}